﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NPC模块结构
{
    class Program
    {
        static void Main(string[] args)
        {

            Console.WriteLine("------任务类------");
            TaskNPC npc1 = new TaskNPC("常九爷",NPCType.Task,"送信");
            Test(npc1);
            TaskNPC npc2 = new TaskNPC("岚姐",NPCType.Task,"杀怪");
            Test(npc2);
            TaskNPC npc3 = new TaskNPC("宝儿姐",NPCType.Task,"采集");
            Test(npc3);
            Console.ReadKey();

            Console.WriteLine("------销售类------");
            ShopType npc4 = new ShopType("武器大师", NPCType.Shop, "武器");
            Test(npc4);
            ShopType npc5 = new ShopType("锅巴", NPCType.Shop, "材料");
            Test(npc5);
            ShopType npc6 = new ShopType("香菱", NPCType.Shop, "食物");
            Test(npc6);
            Console.ReadKey();

            Console.WriteLine("------锻造类------");
            BlackSmithType npc7 = new BlackSmithType("盘古",NPCType.BlackSmith,"修补");
            Test(npc7);
            BlackSmithType npc8 = new BlackSmithType("安娜",NPCType.BlackSmith,"强化");
            Test(npc8);
            BlackSmithType npc9 = new BlackSmithType("老八",NPCType.BlackSmith,"打造");
            Test(npc9);
            Console.ReadKey();
        }
        static void Test(NPC c)
        {
            c.Speak();
        }
    }
}
